package com.xk._02算法篇._08dynamicProgramming;

/**
 * @description:
 * @author: xu
 * @date: 2022/10/20 15:41
 */
public class ArrayPrint {
    public static void towArrayPrint(int[][] array) {
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array[i].length; j++) {
                System.out.print(array[i][j] + "\t");
            }
            System.out.println();
        }
    }

    public static void oneArrayPrint(int[] array) {
        for (int num : array) {
            if (num < 0) System.out.print("--" + "\t");
            else System.out.print(num + "\t");
        }
        System.out.println();
    }
}
